﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace xna_game_engine.source
{
    public class TalentWarDeadlyPrecision : CTalentBase
    {
        //* Members *//
        Dictionary<int, int> mValues;

        //* Functions *//
        public TalentWarDeadlyPrecision(BaseCharacter owner)
        {
            mName = "Deadly Precision";
            mRanks = 3;
            mCurRank = 0;
            mValues = new Dictionary<int,int>();
            mValues[0] = 0;
            mValues[1] = 5;
            mValues[2] = 10;
            mValues[3] = 100;
            mDescription = String.Format("Increases Devastate's extra damage chance by {0}%", 0);
            mOwner = owner;
        }

        override public bool AddPoint()
        {
            //if (mCurRank < mRanks)
            //{
            //    SkillWarDevastate temp = (SkillWarDevastate)mOwner.Skills["Devastate"];
            //    temp.ExtraDamageChance -= mValues[mCurRank];
            //    mCurRank++;
            //    mDescription = String.Format("Increases Devastate's extra damage chance by {0}%", mValues[mCurRank]);
            //    temp.ExtraDamageChance += mValues[mCurRank];
            //    return true;
            //}
            //else
            //{
            //    return false;
            //}
            return true;
        }

        override public bool RemovePoint()
        {
            return true;
        }
    }
}
